package day09;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ThreadSleep {

	public static void main(String[] args) {
		
		SimpleDateFormat fmt=new SimpleDateFormat("E HH:mm:ss");
		
		
		
		while(true){
			String time=fmt.format(new Date());
			try {
				Thread.sleep(1000);
				
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
			System.out.println(time);
			
		}
		
		
		
		
		
		
		
		
		
		
		
	}

}
